<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<infopost-request>
			<xsl:for-each select="FEEDAYCHECK">
				<request-head>
					<trans-id>
						<xsl:value-of select="MAIN/TRANSRNO" />
					</trans-id>
					<insu-id>
						<xsl:value-of select="MAIN/INSUID" />
					</insu-id>
					<trans-type>825</trans-type>
					<trans-date>
						<xsl:value-of select="MAIN/TRANSRDATE" />
					</trans-date>
					<trans-time>
						<xsl:value-of select="MAIN/TRANSRTIME" />
					</trans-time>
					<bank>203</bank>
					<area />
					<branch />
					<post>
						<xsl:value-of select="MAIN/BRANCHOFBANK" />
					</post>
					<agency-hand />
					<authorized />
				</request-head>
				<request-checkbill>
					<check-date>
						<xsl:value-of select="MAIN/CHECKDATE" />
					</check-date>
					<client-total-count>
						<xsl:value-of select="MAIN/TOTALCOUNT" />
					</client-total-count>
					<check-trans-list>
						<xsl:for-each select="DAYCHECK_DETAILS/DAYCHECK_DETAIL">
							<check-trans>
								<trans-type>
									<xsl:value-of select="org-tx-id" />
								</trans-type>
								<trans-date>
									<xsl:value-of select="txn-dt" />
								</trans-date>
								<bank-trans-id>
									<xsl:value-of select="rqPtTcNum" />
								</bank-trans-id>
								<trans-id>
									<xsl:value-of select="ins-co-jrnl-no" />
								</trans-id>
								<trans-br>
									<xsl:value-of select="ccbins-id" />
								</trans-br>
								<product-id>
									<xsl:value-of select="cvr-id" />
								</product-id>
								<policy-code>
									<xsl:value-of select="inspolcy-no" />
								</policy-code>
								<premium>
									<xsl:value-of select="txnamt" />
								</premium>
								<print-code>
									<xsl:value-of select="inspolcy-vchr-no" />
								</print-code>
							</check-trans>
						</xsl:for-each>
					</check-trans-list>
				</request-checkbill>
			</xsl:for-each>
		</infopost-request>
	</xsl:template>
</xsl:stylesheet>
